package com.kaifa.test;

import com.sun.xml.internal.ws.policy.EffectiveAlternativeSelector;

public class Demo {
    public static void main(String[] args) {
        int s = 3;
        /*逻辑或运算*/
        /*System.out.println(s>100 || s<4);
        System.out.println(false || true);
        System.out.println(false || false);
        System.out.println(true || true);
        System.out.println(true || false);*/

        /*逻辑与运算*/
        /*System.out.println(s>100 && s<4);
        System.out.println(false && true);
        System.out.println(false && false);
        System.out.println(true && true);
        System.out.println(true && false);*/

        /*逻辑非*/
        /*System.out.println(!true);
        System.out.println(!false);

        System.out.println(!(true && false));
        System.out.println(!(true || false));*/
        /*条件判断语句*/
        /*if(3>2){
            System.out.println("你好");
        }else{
            System.out.println("不好");
        }*/

        int chengji = 75;
        if(chengji>=80){
           System.out.println("优秀");
        }else if(chengji>=60){
            /*60<chengji<80*/
            System.out.println("合格");
        }else{
            System.out.println("补考");
        }










        /*int num = 2;
        int num2 = 3;
        double db = 1.3;
        System.out.println("相加之后："+(db+num));*/
        /*int num = 3;
        int num2 = 5;
        Boolean bl1 = true;
        Boolean bl2 = false;
        System.out.println(num>num2?bl2:bl1);*/
        /*int i =1;
        String str = "你好！";
        String str2 = "我不好！";
        System.out.println(i++>++i?str:str2);*/
        /*String yang = "杨硕";
        String shuo = "杨硕";
        System.out.println(yang.equals(shuo)?true:false);
        System.out.println("1".equals("2")?true:false);
        System.out.println(1==2?true:false);
        System.out.println(2>=2?true:false);*/
        /*System.out.println(--num);
        System.out.println(num--);
        System.out.println(num);*/

        /*System.out.println("8++="+num3++);*//*num3*//*
        System.out.println(num3);*//*num3 = num3+1*//*
        System.out.println(++num4);*//*num4 = num4+1*//*
        System.out.println(num4);*//*num4*//*
        System.out.println(num4++);*/

        /*System.out.println("3.01++="+db2++);
        System.out.println("++5="+(++num2));*/

        /*System.out.println("5+3="+(num+num2));
        System.out.println("5+3.0="+(num2+db));
        System.out.println("5*3="+num*num2);
        System.out.println("5*3.0="+num2*db);
        System.out.println("15/3="+num4/num);
        System.out.println("15/3.0="+num4/db);
        System.out.println("8-3="+(num3-num));
        System.out.println("8-3.0="+(num3-db));*/



        /*String str = "int类型的最大值：";
        System.out.println(str+Integer.MAX_VALUE);
        System.out.println("int类型的最小值："+Integer.MIN_VALUE);
        String str1 =  "double类型的最大值：";
        System.out.println(str1+Double.MAX_VALUE);
        System.out.println("float类型的最大值："+Float.MAX_VALUE);
    */
    }

}
